<template>
  <div>
    udiskList
    <button @click="logout">登出</button>
  </div>
</template>

<script>
import { userActions } from '@/utils/actionName'

const { LOG_OUT } = userActions
export default {
  methods: {
    logout() {
      this.$store.dispatch(`user/${LOG_OUT}`)
      this.$router.push('/login')
    }
  }
}
</script>

<style>

</style>